body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5e8c8; /* 淡黄色背景，有传统感 */
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.container {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 800px;
    width: 100%;
    text-align: center;
}

h1 {
    color: #e67e22;
    margin-bottom: 30px;
}

/* 骰子容器样式 */
.dice-container {
    display: flex;
    justify-content: center;
    gap: 15px; /* 骰子之间的间距 */
    margin: 30px 0;
    flex-wrap: wrap; /* 在小屏幕上自动换行 */
}

/* 单个骰子样式 */
.dice {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px; /* 如果使用文字点数，如⚀ */
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid #ddd;
    /* 如果使用图片作为骰子，可以这样设置：
    background-image: url('assets/dice1.png');
    background-size: cover;
    */
}

/* 掷骰子按钮样式 */
.roll-button {
    background-color: #e67e22;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.roll-button:hover {
    background-color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.roll-button:active {
    transform: translateY(0);
}

.roll-button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 结果显示区域样式 */
.result {
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
    min-height: 40px;
    color: #e74c3c;
}

/* 规则说明区域样式 */
.rules {
    text-align: left;
    margin-top: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.rules h3 {
    color: #e67e22;
    margin-top: 0;
}

.rules ul {
    padding-left: 20px;
}

.rules li {
    margin-bottom: 5px;
}

/* 骰子滚动动画 */
@keyframes roll {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.rolling {
    animation: roll 0.5s infinite;
}

/* 响应式设计：小屏幕调整 */
@media (max-width: 600px) {
    .dice {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
    
    .container {
        padding: 15px;
    }
}